package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/**
 * @ClassName SupplierDao
 * @Author 波
 * @Date 2024/9/24 10:31
 */
@Mapper
public interface SupplierDao {
    List<Supplier> list(@Param("offSet") int offSet, @Param("rows") Integer rows, @Param("supplierName") String supplierName);

    int getCount(@Param("supplierName") String supplierName);


    int save(@Param("supplierName") String supplierName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    int update(@Param("supplierId") Integer supplierId, @Param("supplierName") String supplierName, @Param("contacts") String contacts, @Param("phoneNumber") String phoneNumber, @Param("address") String address, @Param("remarks") String remarks);

    int delete(@Param("id") int id);
}
